package com.eastfair.notice.vo;

import com.eastfair.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ClassName CommentVO
 * @Description TODO
 * @Author liuxiaobai
 * @Date 2021/8/31 10:32 上午
 * @Version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CommentVO extends BaseVO {

    /**
     * ID
     */
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projectId;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionId;
    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级ID")
    private Long parentId;
    /**
     * 回复人userId
     */
    @ApiModelProperty(value = "回复人userId")
    private Long userId;
    /**
     * 被回复人userId
     */
    @ApiModelProperty(value = "被回复人userId")
    private Long parentUserId;
    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private String code;
    /**
     * 所属业务类型
     */
    @ApiModelProperty(value = "所属业务类型")
    private String subjectType;
    /**
     * 所属业务ID
     */
    @ApiModelProperty(value = "所属业务ID")
    private Long subjectId;
    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    private String content;
    /**
     * 回复时间
     */
    @ApiModelProperty("回复时间")
    @JsonFormat(
            shape = JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    protected LocalDateTime createTime;
    /**
     * 回复人姓名
     */
    @ApiModelProperty(value = "回复人姓名")
    private String userName;
    /**
     * 被回复人姓名
     */
    @ApiModelProperty(value = "被回复人姓名")
    private String parentUserName;
}
